package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.User;
import cn.wolfcode.trip.base.query.QueryObject;
import cn.wolfcode.trip.base.query.UserQueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IUserService {
    /**
     * 新增或者修改的逻辑方法
     */
    void saveOrUpdate(User u);

    void register(User u);

    User login(String email, String password);

    PageInfo query(QueryObject queryObject);

    User getUesrData(Long id);

    void concern( Long userId);

    boolean isConcern(Long userId);

    List<User> getfansOrWatchs(Long id,String type);
}
